<?php
/**
 * Created by PhpStorm.
 * User: Yangjinlei
 * Date: 2018/6/30
 * Time: 14:55
 */

namespace App\Validates\v1;


class AuthController
{
    public function login(){
        return [
            'rules'=>[
                'name'=>'required|exists:users',
                'password'=>'required'
            ],
            'messages'=>[
                'name.required'=>'请输入用户名',
                'password.required'=>'请输入密码',
                'name.exists'=>'用户名不存在',
            ]
        ];
    }
}